<?php

/**
 * request actions.
 *
 * @package    sf_sandbox
 * @subpackage request
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class requestActions extends sfActions
{
  /**
   * Executes index action
   *
   */
  public function executeIndex()
  {
    $this->forward('default', 'module');
  }
  
  public function executeLoguj(){
  	
  }
  
  public function executeWeryfikuj(){
  	$oRequest = $this->getRequest();
  	
  	$this->iMetoda = $oRequest->getMethod();
  	$this->sMetodaNazwa = $oRequest->getMethodName();
  	$this->bIsLogin = $oRequest->hasParameter('login');
  	if ($this->bIsLogin)
  		$this->sLogin = $oRequest->getParameter('login');
  		$this->sPass = $oRequest->getParameter('pass');
  }
  
  public function executeZadanie(){
  	$oRequest = $this->getRequest();
  	$this->sHost 	= $oRequest->getHttpHeader('Host');
  	$this->sHost2 	= $oRequest->getHost();  	
  	$this->sAgent 	= $oRequest->getHttpHeader('User-agent');  	
  	$this->bIsAjax 	= $oRequest->isXmlHttpRequest();
  	$this->bIsSSL 	= $oRequest->isSecure();  	
  }
  
  public function executeZasob(){
  	$oRequest = $this->getRequest();
  	$this->sUrl 	= $oRequest->getUri();
  	$this->sSciezka	= $oRequest->getPathInfo();
  	$this->sNazwaSkryptu 	= $oRequest->getScriptName();
  	$this->sOdniesienie 	= $oRequest->getReferer();
  }
  
  public function executeAllInOne(){
  	$oRequest = $this->getRequest();
  	$this->aParametry 	= $oRequest->getParameterHolder()->getAll();
  }
}
